
set linkName=Cygwinx
set linkPath="%cd%\bin\mintty.exe"
set linkArgs="-i /Cygwin.ico -"

echo Dim WshShell,Shortcut                                           >>tmp.vbs 
echo Set WshShell=WScript.CreateObject("WScript.Shell")              >>tmp.vbs 
echo Set Shortcut=WshShell.CreateShortCut("%cd%\%linkName%.lnk")     >>tmp.vbs 
echo Shortcut.TargetPath=%linkPath%                                  >>tmp.vbs 
echo Shortcut.Arguments =%linkArgs%                                  >>tmp.vbs
echo Shortcut.Save                                                   >>tmp.vbs 
"%SystemRoot%\System32\WScript.exe" tmp.vbs 
@del /f /s /q tmp.vbs  
